<template>
  <div class="section-card">
    <header>
      <h2 class="title">{{title}}</h2>
      <div>
        <slot name="right"></slot>
      </div>
    </header>
    <div class="content">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'SectionCard',
  props: {
    title: String
  }
}
</script>

<style lang="scss" scoped>
.section-card {
  @include wh(100%, auto);
  padding: 0 30px;
  padding-bottom: 20px;
  box-sizing: border-box;
  header {
    @include wh(100%, auto);
    @include flex(flex, space-between);
    padding: 20px 0;
    .title {
      font-size: 28px;
      font-weight: bold;
    }
  }
}
</style>
